<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDeviceGroupAddsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('device_group_adds', function (Blueprint $table) {
            $table->increments('id');
            $table->string('wechat1', 190)->comment('微信1');
            $table->string('wechat2', 190)->comment('微信2');
            $table->string('wechat3', 190)->comment('微信3');
            $table->string('wechat4', 190)->comment('微信4');
            $table->integer('device_group_id')->index()->nullable()->comment('设备分组ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('device_group_adds');
    }
}
